/**
 * 
 */
package com.locky.ws;

import javax.persistence.*;


/** 
 * @author ambroise
 */
@Entity
@Table(name="t_dispositif")
public class Dispositif {

	/**
	 * @uml.property  name="numeroSerie"
	 */
	@Id
	private String numeroSerie;

	/**
	 * Getter of the property <tt>numeroSerie</tt>
	 * @return  Returns the numeroSerie.
	 * @uml.property  name="numeroSerie"
	 */
	public String getNumeroSerie() {
		return numeroSerie;
	}

	/**
	 * Setter of the property <tt>numeroSerie</tt>
	 * @param numeroSerie  The numeroSerie to set.
	 * @uml.property  name="numeroSerie"
	 */
	public void setNumeroSerie(String numeroSerie) {
		this.numeroSerie = numeroSerie;
	}

	/**
	 * @uml.property  name="nom"
	 */
	private String nom;

	/**
	 * Getter of the property <tt>nom</tt>
	 * @return  Returns the nom.
	 * @uml.property  name="nom"
	 */
	public String getNom() {
		return nom;
	}

	/**
	 * Setter of the property <tt>nom</tt>
	 * @param nom  The nom to set.
	 * @uml.property  name="nom"
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}

	/**
	 * @uml.property  name="type"
	 */
	private String type;

	/**
	 * Getter of the property <tt>type</tt>
	 * @return  Returns the type.
	 * @uml.property  name="type"
	 */
	public String getType() {
		return type;
	}

	/**
	 * Setter of the property <tt>type</tt>
	 * @param type  The type to set.
	 * @uml.property  name="type"
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @uml.property   name="acces"
	 * @uml.associationEnd   inverse="dispositif:com.locky.ws.Acces"
	 */
	@ManyToOne
	@JoinColumn(name="acces_fk")
	private Acces acces;

	/**
	 * Getter of the property <tt>acces</tt>
	 * @return  Returns the acces.
	 * @uml.property  name="acces"
	 */
	public Acces getAcces() {
		return acces;
	}

	/**
	 * Setter of the property <tt>acces</tt>
	 * @param acces  The acces to set.
	 * @uml.property  name="acces"
	 */
	public void setAcces(Acces acces) {
		this.acces = acces;
	}

}
